#include "game.h"
#include <system/platform.h>
#include <graphics/d3d11/Mesh.h>
#include <graphics/d3d11/primitives/cube.h>
#include <iostream>
#include <Windows.h>
TestApp::TestApp(fort::Platform& platform) :
	Application(platform)
{
	
}

void TestApp::Init()
{
	fort::Colour color(0.25f,0.11f,0.99f,1.0f);
	
	platform.setRenderTargetClearColour(color);
}

void TestApp::CleanUp()
{
	
}

bool TestApp::Update(float frame_time)
{
	fps = 1.0f / frame_time;
	//platform.CreateMesh();
	fort::Cube player;
	player.Init(platform, 10, 10, 10,1);

	//player.CreateCube(10,10,10,1);
	//player.createMesh.cube;
	char buffer [50];
	sprintf_s(buffer, "FPS %d\n", fps);
	OutputDebugString(buffer);
	return true;
}

void TestApp::Render()
{
	
}

void TestApp::InitFont()
{
	
}

void TestApp::CleanUpFont()
{

}

void TestApp::DrawHUD()
{

}
